//package com.ruoyi.web.controller.system;
//
//import java.util.List;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.ruoyi.common.annotation.Log;
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.common.enums.BusinessType;
//import com.ruoyi.system.domain.MeterRecordAdd;
//import com.ruoyi.system.service.IMeterRecordAddService;
//import com.ruoyi.common.utils.poi.ExcelUtil;
//import com.ruoyi.common.core.page.TableDataInfo;
//
///**
// * 电每日增值记录Controller
// *
// * @author ruoyi
// * @date 2021-11-01
// */
//@RestController
//@RequestMapping("/system/meterRecordAdd")
//public class MeterRecordAddController extends BaseController
//{
//    @Autowired
//    private IMeterRecordAddService meterRecordAddService;
//
//    /**
//     * 查询电每日增值记录列表
//     */
//    @GetMapping("/list")
//    public TableDataInfo list(MeterRecordAdd meterRecordAdd)
//    {
//        startPage();
//        List<MeterRecordAdd> list = meterRecordAddService.selectMeterRecordAddList(meterRecordAdd);
//        return getDataTable(list);
//    }
//
////    /**
////     * 导出电每日增值记录列表
////     */
////    @Log(title = "电每日增值记录", businessType = BusinessType.EXPORT)
////    @GetMapping("/export")
////    public AjaxResult export(MeterRecordAdd meterRecordAdd)
////    {
////        List<MeterRecordAdd> list = meterRecordAddService.selectMeterRecordAddList(meterRecordAdd);
////        ExcelUtil<MeterRecordAdd> util = new ExcelUtil<MeterRecordAdd>(MeterRecordAdd.class);
////        return util.exportExcel(list, "电每日增值记录数据");
////    }
//
////    /**
////     * 获取电每日增值记录详细信息
////     */
////    @PreAuthorize("@ss.hasPermi('system:add:query')")
////    @GetMapping(value = "/{id}")
////    public AjaxResult getInfo(@PathVariable("id") Long id)
////    {
////        return AjaxResult.success(meterRecordAddService.selectMeterRecordAddById(id));
////    }
//
////    /**
////     * 新增电每日增值记录
////     */
////    @PreAuthorize("@ss.hasPermi('system:add:add')")
////    @Log(title = "电每日增值记录", businessType = BusinessType.INSERT)
////    @PostMapping
////    public AjaxResult add(@RequestBody MeterRecordAdd meterRecordAdd)
////    {
////        return toAjax(meterRecordAddService.insertMeterRecordAdd(meterRecordAdd));
////    }
////
////    /**
////     * 修改电每日增值记录
////     */
////    @PreAuthorize("@ss.hasPermi('system:add:edit')")
////    @Log(title = "电每日增值记录", businessType = BusinessType.UPDATE)
////    @PutMapping
////    public AjaxResult edit(@RequestBody MeterRecordAdd meterRecordAdd)
////    {
////        return toAjax(meterRecordAddService.updateMeterRecordAdd(meterRecordAdd));
////    }
////
////    /**
////     * 删除电每日增值记录
////     */
////    @PreAuthorize("@ss.hasPermi('system:add:remove')")
////    @Log(title = "电每日增值记录", businessType = BusinessType.DELETE)
////	@DeleteMapping("/{ids}")
////    public AjaxResult remove(@PathVariable Long[] ids)
////    {
////        return toAjax(meterRecordAddService.deleteMeterRecordAddByIds(ids));
////    }
//}
